<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="org.store.pojo.*" %>
<%@ page import="org.user.pojo.*" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body {font-family: Arial, Helvetica, sans-serif; font-size:12px; text-align:center;}
a { text-decoration: none;}
#all {widht: 100%; text-align:center; margin:auto;}
#main {width: 96%; line-height: 1.8; margin:auto; border:1px #ccc dashed; text-align: left; text-indent: 2em;}
</style>
</head>

<body>
<div id="all">

	<%

	Goods cgoods = (Goods)session.getAttribute("cgoods");
	
	%>
	<div id="main">
		<form action ="/rsp/goods/mgoods?flag=3" method="post">

	<input type = "hidden" name = "belongTo" value="<%=cgoods.getBelongTo()	 %>"/>
	</p>	
	<p>图书图片&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	<input name = "graph" type= "radio" value = "1" checked= "checked"/><img src = "/rsp/content/wwy/css/goods/1.jpg" width="40px"height ="40px"/>
	<%for(int i =2;i<=15;i++) { %>
	<input name = "graph" type= "radio" value = "<%=i %>"/><img src = "/rsp/content/wwy/css/goods/<%=i %>.jpg" width="40px" height ="40px"/>
	<% if(i==8){%>
	<br />
	<%} %>
	<%} %>
	</p>
	<p>图书类型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<SELECT name="type">
         <option value="0">小说类</option>
         <option value="1">理工类</option>
         <option value="2">文史类</option>
         <option value="3">优惠图书</option>
         <option value="4">教育类</option>
         <option value="5">英语类</option>
    </SELECT>
    </p>
    
    <p> 图书名称：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type = "text" name="name" value="<%=cgoods.getName() %>"/></p>
    <p>图书价格：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type = "text" name="price" value="<%=cgoods.getPrice() %>"/></p>
    <p>图书数量：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type = "text" name="num" value="<%=cgoods.getNum() %>"/></p>

	<p><input type = "submit" value="提交"/></p>
		</form>
    </div>
</div>
</body>
</html>